parse Content-Type a little better