remove \n and \r after the authString is base 64 encoded. due to java bug

This bug can be reproduced with java 6_16.