Fixed file name sanitation.

Fix for issue #51