Quick fix to file_put_contents