Illegal characters bug

Unknown characters caused assertion rather than being mapped onto code
63 (question mark)