bugfix for issue #10. correctly decode REPE prefix from a REP prefix.