Make decode receive a const ref