Tolerate getfilesystemencoding returning None.
Added a new module to ease WWW-authentication a bit.