ports and references also should be escaped

* yay