fix bug with charset in mysql (pdo).