Escapes characters in output