Recursive Length Prefix Encoding for node.js