Handle perls built without locale support