Unexpected character handling