fix bug at inserting non ascii char at database