make sure key prefix ends with /