include encoded x-url header in temp filename, if present (fixes #2)