Default to UTF-8 for encoding and decoding

I just had a really confusing encoding bug which led me back to the encoding used to comunicate with cURL..  I'm not sure this is the best solution, but it should make most things work.