Replace actual newline and tabs for their utf8 code in template value.