Incorrectly converting IP to string