fix content-type header parameter extraction to handle quotes

Pretty much what it says on the tin. You might also be able to steal some other ideas from [my fork of content-type](https://github.com/deoxxa/content-type).