Fix bug where serialized strings were truncated in PDO::quote() (#1489142)