Allow non-ASCII ref names when writing the packed-refs file