circlicious, I think there's child.setEncoding - you should check the docs