[PATCH] unicode: don't write -1 after NULL terminator