convert bytesref into strings in format function
Merge pull request #856 from crate/h/hotfix-format

H/hotfix format