Parse directive names with punctuation characters

Directives should be able to contain punctuation characters.  The
samples online for mimetypes contain these, but the parse was breaking
on these.