Encoding functions now perform pretty indentation.