Make sure writer enforces the same encoder

https://github.com/square/okhttp/issues/114