add legacy toLocaleString method behaviour