Encode periods and $ in block_id map