Fix space escaping

A space character was not being escaped properly, leading to users with
spaces in their names being unable to send or recieve PMs or Kicks. Fixed
with a second, literal, replacement

Change-Id: I1a00a1ac83d768842db666d7787ff313c7570ffc