[Backend] Fixed a bug where names that contain whitespace or quotes cause the backend to crash.