Fix: escaping tag characters in plaintext