Don't use MediaType.toString()

The result is not cached and it is really slow (according to yjp about 13%
of CPU time).