Move filename utility functions to separate namespace