Prison worker charged over relationship