adding optional min_id for parsing, and proper character encoding