A solution to http://rosettacode.org/wiki/I_before_E_except_after_C