fix to_binary deprecation; now to_string