Fix a bug that broken multi byte strings are stored to DB