Code and data for "Foreign Money", working paper