Extra sanitization of ip field, fixes #623