About Illegal base64 character 5f Execption

Actually i have integrated juju api into my application. i am hitting to juju api trough my application and trying to do decode an encoded url by using base64. while i am doing this i am getting an exception like “Illegal base64 character 5f”. could you tell me how to resolve it.