Move the byte[]<->ConfigNode object into it's own method, handle errors more correctly.