Fixed handling of homefolder with ids that need url quoting and thus
are not equal to the user id.