Fix RangesIO#write corrupting the output file when passed an UTF8-encoded string
Merge pull request #14 from romuloceccon/encoding_bug_fix

RangesIO#write corrupts output if passed a UTF8 string