Fixed read_pins argout typemap being sensitive to encoding.