Fix heredocs so the ending token is skipped from the input.