Fixed custom_search to not break upon characters like [