Implements tag conversion for search terms.