Fixed incorrect usage of unicode in environment dictionary
Fixes #188
Fixes #193