Made changes to LfsEncoding so that InSim.NET now runs correctly on Mono.