Avoid printf %.*s for arbitrary strings