fix for files with preceding host length bytes