fixing base64 encoding for policy sig calculation