$params['title'] can be an array if someone has messed with the query
parameters.
Use WebRequest::getText(), which guarantees strings (and which is
already used for 'prefix' earlier in this method).
Change-Id: I7b974067fdee22fc42c07fad98af4619fa850269