Bugfixes, added string_fwrite