Fix _encode method to avoid an additional parameter on ajax POST, when pass use an object in data param