Use nl_langinfo from gnulib

Also simplifies DefaultEncoding() checks