export class Filenames { /**
     * Create a sane filename from the given input.  Do not allow bad characters
     * which may not be represented in a file.
     */ public static sanitize ( filename ) { return filename . replace ( /[^a-zA-Z0-9_]/gi , '_' ) ; } }