Move default text handling outside of get_raw_body()