updated apache codec from 1.4 to 1.7