This problem should be solved by r1767 and r1768.Choose the appropriate source enconding (eg. EUC-JP) in Application settings -> Repositories. Messages will be reencoded to UTF-8 before insertion in the database.