Remove unused variable and BYTES_MAX

- Variable is never used in function string_to_bytes()
- Use asprintf instead of snprintf in bytes_to_string() and get rid of BYTES_MAX