Implement a more robust quick_upload id generator.

Files starting with '_' did not work before.