Charset handling tests & fixes in implementation.
Merge pull request #23 from apiaryio/hj/charset-fix-and-tests

Charset fix and tests