Set correct content type when rendering text