Handle special characters in metadata from user input (Fixes #34)