Replace to_binary calls with string interpolation