#541 - move formatFileName to options so developers can safely override the default implementation