As with FREGetObjectAsUTF8, ignore any claims the documentation makes about null-termination. The length parameter should not include a null terminator, and the value is not required to be null-terminated.