rewrite FileInfo for easier XSS checking