Bug fix: convert locale to string