Changed DumpRIFF to EncodeRIFF