Set LC_ALL instead of LC_MESSAGES.

Also properly pass the locale to `setlocale` on Windows. Resolves #117.