fix rendering of files with spaces