bug fix for validate signature

Bug fix for validate signature.
Before compute the hash, the values should be encoded via
System.Uri.EscapeDataString.