properly escape assert utf8 chars - fixes #7852