bugfix: replacing special chars in filenames and paths