Optimize formatting

Also allows for passing unescaped values with {...} without a formatexception.