network-conf: Replace spaces when hostname fallback from devicetree is used
When no hostname is found in the xml, there is a fallback to the module name from the devicetree. This might contain spaces, which leads to errors in the further processing. This replaces the spaces with underscore '_'.