String preparation for HTTP authentication