hrender: introduce hlib.HscriptEncoder