main: Use proper locale for asciiz conversion