ascii2native java implementation and groovy implementation