support different encoding styles and force to something we can work with.
Merge pull request #57 from ThrowTheSwitch/bug/encoding

Support different encoding styles and force to something we can work with