Make sure writer enforces the same encoder