default to 'html' for unknown file extensions

before this change it passed unknown 'type' as is, and crashed in 'getRegex'