Added XML filter utility class and use to improve support for PHP 5.2, cast variables to string before filtering the variables.