encoding/decoding of fs names