Fix settings sanitize filter. CLoses #1738