Replace stripslashes hack with a filter class