What about using String::Quote($netbios_name)?