fix incorrect system encoding detection under newest Arch Linux