Fixed networking functions to use string instead of char.