Make sure writer enforces the same encoder
Merge pull request #33 from JakeWharton/marcelo/encoding

Make sure writer enforces the same encoder