Solved issue with lossy read/writing by storing raw data instead of parsed data, fix for issue #2