fixed comment
add a error handling for Encoding::InvalidByteSequenceError