fix issue with charset for mysql