fixes in video module when magic quotes are enabled