rstrip messed up regions, fix #176