Use MediaType instead of string.