Test bad input to mustEncode errors properly