test-case for broken encoding