Minecraft wiki entry for Development_versions, associated text: Blocks with custom names, including banners, hoppers, chests, furnaces, enchanting tables, dispensers, droppers, brewing stands, and minecarts, will retain their custom name when the block is dropped as an item, and when the item is placed again
Use the CustomName tag