Repaired bug: locale not being converted to string before comparing