Fix more unicode/memory allocation errors.