Regression, due to the use of filter_var function.
Reported in http://forum.piwik.org/read.php?2,93073
(In [6893]) Fixes #3354 Do not use filter_var