added column 'encoding' in database and modified the code to work with that column
- lightly modified the layout of card_detail_layout
- added button 'preview' to card_detail_layout