Clean up after 5.8.1 requirement bump

These commits remove some 5.005-isms and gets rid of check for non-C locales under perl 5.8.0.