title: check if javascript string is valid UTF-8
body: <p>A user can copy and paste into a textarea html input and sometimes is pasting invalid UTF-8 characters, for example, a copy and paste from a rtf file that contains tabs.</p>
  
  <p>How can I check if a string is a valid UTF-8?</p>