changing spec for new expected bahavior on invalid encoding