I usually spray carpet with diluted vinegar and that tends to nutralise the smell.