hook for proxy authentication + fixed iso8859-1 encoding