Replace StringToLocalUTF8 with LocalToString and memcpy to make this binary compatible and update the documentation.
Strip line breaks when reading product.version, as Git can mangle the line breaks if autocrlf is configured, resulting in `SM_BUILD_TAG` getting defined with a linebreak.