fix locale LC_ALL handling