handle invalid code-points