fix json dump if PHP < 5.4.0
change default file prefix