Fix dynamic format string functions

- s/r_str_dup_printf/r_str_newf/g
- Add r_strbuf_setf()