Correctly parse mime-types with a charset parameter