Clean return value of readdir(...) to work with GCS.