Basic encoding/decoding working again.