this to_string function in general is a bit confusing in purpose to me. It seems as though its purpose is to encode strings as UTF-8, in which case to_string is probably not the best name for it. I'd like to hear from Kangone about the intention behind this so its a bit more clear. Is FB using some encoding other than UTF-8?