Sadly, MSVC is ahead of GCC - libstdc++ does not yet support the <codecvt> header, so we can't do this in GCC: http://stackoverflow.com/a/4786824/1959975
So what cross-platform standard alternative is there?
Unfortunately libc++ is not supported on Windows, and using boost is completely out of the question for this specific project (but perfectly within reason everywhere else).