Refactor into string methods

  * Convert strings, not HTML elements
  * Test encode/decode interface methods