Switch more instances of print to print_body
Add PerlIO layer for legacy apps still using print