fs-common fixes

Use correct flags in `write`
Correct typo carset -> charset

Add specs