Update client.js

Adding space to encodeSpecialCharacters