Improve parsing boundary attribute from Content-Type

This changes the regular expression to parse the Content-Type to
generically look at the attributes, such that unknown ones are
just ignored.