Test special character escaping