Agreed. Good catch on the case sensitivity and the potential null! 

I believe that we should move *all* String representations of MIME types to the Guava [MediaType](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/net/MediaType.html) class. ;)