[[ Bug 13876 ]] Ensure format function supports unicode
Merge pull request #1411 from runrevali/bugfix-13876

[[ Bug 13876 ]] Ensure format function supports unicode