Added meta extraction

Extracted meta data from the reference files. That way I can use that for some
automation later.
Added encoding to ref_build

The AMDIS libraries from Orono had an unusual encoding, so I needed to add in
some decoing business to make sure the files are opened and read properly.