default to 'html' for unknown file extensions

before this change the code passed unknown 'type' as is and then crashed in 'getRegex'