On the regularity of solutions to the Beltrami equation in a plane