sprintf optimizations have issues with %{ %} - segfault