Allow string value for port numbers.

Fixes #35.
Allow String objects for scheme configuration.