Enforces a locale

This also removes some deprecation messages when loading the environment.