Gittip.trim: strip Unicode and non-printing characters

Resolves #1968
TODO: make tests operational

<!---
@huboard:{"order":1972.5}
-->