safeBaseFn: QueryUnescape + trim filenames for 255 bytes at max