Only trim to an even number of trailing backslashes