Make sure filenames are safe on all platforms

Added utils module and class with make_name function to replace unsafe
characters with the underscore character.