>>/996113/
That reminds me, uploading PHP code with the JPEG magic bytes at the front triggers a 500 or 501. Suggests it's getting passed to the ImageMagick library (or similar) which is then barfing.
eg
ÿØÿà␀␐JFIF␀␁