Fix for Buffer conversion of JSON string.
Emit open event upon completion.