uri encode bugfix; exports stringToSign bugfix