Pass array to Title::getLocalURL instead of an urlencoded string

This makes code easier to read and the urlencode is done inside
getLocalURL or friends

Change-Id: I21b988890356d11835eedba12a90a347bf0905b2