FS-5139 --resolve
change fs_encode to support raw files to wav or to other raw