fix file reload code
ignore leading nulls, use next byte as length field