The output pointer must not go past the ending \0.
warning: HEAP[testglib.exe]: warning: Heap block at 0000011EA35745A0 modified at 0000011EA35745BF past requested size of f
Fixes commit 9a30a495 "gfileutils: Improve performance of g_canonicalize_filename()"
Related to #1371