fix convert_template, rename to convert_re_template

it was not handling escaped characters like r"\n"

rename because convert_template didn't really describe what it does