Fixed crash.

Turns out that LB_GETTEXT and GetEnvironmentVariable were not returning
the number of bytes in a string but rather the number of (abstract)
characters (as opposed to the char or byte type).