port EDGE_CHARRANGE to jvm backend