Faster 'filterString()' for CookieManager.
Forgotten changes from 91c88872f8, 6a4c45c0ad and 7b3b4f9b94
Merge pull request #763 from srazi/master

CookieManager::filterString() and some fixes from recent commits.