Convert varchar to binary for file tree