Force UTF8 encoding

Fix issues #78 and #90 (credits to @manolof)