Encode utf-8 for content.