ascii errors removed and setlocale rake task added