Ok I just found the solution here https://stackoverflow.com/questions/19100708/mongodb-mongorestore-failure-localefacet-s-create-c-locale-name-not-valid it turns out that I need to do the following

export LC_ALL="en_US.UTF-8"