Revert "Fix locale object getter, closes #1113"

This reverts commit 87a64c3f3e213e8d41ee5bc75cbd3262d02afdd6.