fix bulk_upload on virtual models
fix encoding issue in bulk upload