Added encode/decode to flac.