Yes that’s probably the answer. Try to turn it off. Here is a post from php site that says its not a good idea at all to turn php safe mode on as it is deprecated http://php.net/manual/en/features.safe-mode.php
I doubt that it is a theme issue but you can temporarily change to the default theme to see if it has the same issue. It could also be a special case unique to your server.