extracting the ExtractCEFString method

Additionally I made things a fair bit neater by using the memmove for char
arrays which handles the wchar UCS2 source string correctly.