Changed signature encoding to prevent logout from ocurring.