perform invalid unicode character check within parser