remove string casting from error formatting, it fails on unicode characters