core: Fix parsing of network name.