Updated to include \0 in value output for windows