Replace ContentType with internal code