split raw.c into rawdec.c and rawenc.c