remove backslashes from templates