minor fix

correctly removes unnecessary characters left behind when logging
runewords/cube under non-english locale systems