Updated address to bytes conversion logic