json_encode fix

Self explanatory - not much of a change..