Restrict charset used for file_id.

Suggested by:	scoof