title: Is there a common function to translate string to special character?
body: <p>Assuming that there is an input field named fieldDelimiter, and user input "\\t", i should translate '\\t' to '\t'. ('\\n' to '\n', '\\u0001' to '\u0001' .etc).
  Is there a common function to do this? </p>