Changed how the basic auth was encoded to work on android and desktop java