parseInt port numbers on non-ssl socket

Should fix #270