Issue #3304560 by recrit, Gertlor, drunken monkey: Fixed problems with "Multiple terms" parse mode and invalid UTF-8 strings.