OF-845: Sanitize input values for archive search

Prevent XSS-vulnerable parameters from being submitted via the search
form.