improved charset extraction, changed 'phase' to 'offset' in resulting nexus/json