Fixed percent symbols in custom blocks

This fixes issue #476
Merge pull request #623 from natashasandy/master

Fixed percent symbols in custom blocks