Fixed int deserialization - using Karl von Randow's code from Charles Proxy