Fixed default encoding problem. Submitted by: Jelka Kosir <jelka.kosir.at.atol.si> Note by jeremias: I haven't found any information which encoding/charset should be used with basic authentication. RFC 2617 doesn't seem to address that. The behaviour for characters outside the US-ASCII (7bit) charset may not be as expected.