properly decode encoded signature sent by client