use FormatValue (String) instead.
Had the same issue and made a demo patch to post it, before i saw this thread. Perhaps it helps. Tested under 26, 27.1, 28.1 with different results.
FormatValue (String) is also a good solution for me.
Thanks
Patch with description (12.6 kB)