I have actually added a call to trim() in our LinkTo object (Scala) after I saw this call. This should ensure none of the links get the extra spaces.