Accept UTF8 as UTF-8 and test encoding with fallback to UTF-8

Fixes #71 (tested together with #72).

(Breaks Ruby 1.8)