A man who died after the car he was driving left the A64 in North Yorkshire and crashed into a tree has been named.