Gittip.trim: strip Unicode and non-printing characters

Resolves #1968
TODO: make tests operational