rescue InvalidByteSequenceError needed for eval