add newline to util/resty print method