Fix #606

Strip BOM characters in embedded JSON resources.