Renaming files to comply with Windows filesystem rules

Fixes issue #145