Phase unwrapping and one-dimensional sign problems