Special chars in tags barf filter_var

Due to how FILTER_SANITIZE_STRING works, if you had special chars in
your tags (eg. <3 or !) the string would be cut before the offending
character(s) and in worst case, result in no tags passing to the API

(re-created the old pullrequest #398 in develop-branch)