fix pdo encoding