Replace to_binary/1 with to_string/1 (deprecation)