Convert port to string to avoid Regexp error.

I needed to update this in order to have it work on my system.