Regular prefix codes and right power-bounded languages