Replace call to deprecated `binary_to_list/1` function