Make printf functions hookable.
Use jd_vfprintf for tap output.
Implemented jd_utf8_substr.