Encoding::InvalidByteSequenceError may be raised even if encoding is valid (#12787).
Authored by: jplang 2013-01-12
Parent: [r11177]
Child: [r11179]