Work-around for XY3 bug reading beyond terminating \0 when parsing filenames for directory listings.