Encode periods and $ in block_id map

STUD-872

@cahrens @singingwolfboy please review