extract content and fixed encoding