unicode: Fix DoS by limiting searches
karma: trim input