Removed to_s on ports

The `to_s` was causing this exception on jruby:

https://gist.github.com/andrewkatz/6075245

Changing these from being strings seems to fix the issue.