Fix bug with locale #211

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Phpspec specification passes: yes
Checkstyle issues: no
ChangeLog updated: no
Fixes the following issue: #211