Tidying up the Unexpected character message.