bug 983322 - sanitize preferencesBranch