Ticket 47722 - rsearch filter error on any search filter
Bug Description: A NULL gets incorrectly added to the search filter, which
creates an invalid filter.
Fix Description: Do not add a NULL character to the search filter.
Original fix submitted by nkinder(Thanks!)
https://fedorahosted.org/389/ticket/47722
Reviewed by: nhoosi(Thanks!)
(cherry picked from commit 8afcf90b0d9d6599144bb1666ca79cef9e91b3ef)