Fix JSON decoding on empty string that contains a space