An enclosure for enclosing piezoelectric elements of a piezoelectric actuator comprises a side wall that is shaped to define at least one strain compensation formation selected from a longitudinally-extensible part at which the side wall can be extended or contracted parallel to a longitudinal axis of the enclosure; and an inwardly-deflectable part at which the side wall can be deflected transversely to the longitudinal axis.