bugfix to save/load (null terminate strings)