Handles MySQL collation error