Stairs BSP to mesh creates really strange UV's

How can I fix the uv’s or generate a better mesh from a BSP for stairs? The screenshots show two sides of the same mesh, and the UV’s seem to be quite different.

This is the other side of the same mesh.