[Fixes bug 81] Strings are now stripped of control characters on write in case some weird mix of characters created one. Should not affect anything else. Very weird bug though.