Replace deprecated from_c_str with from_buf in id
Merge pull request #379 from IvanUkhov/from-buf

Replace deprecated from_c_str with from_buf in id