Fix #58 -- crash on parsing invalid IP addresses containing '.'

Fixes #58.