Correctly escape plaintext